﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DCF RID: 3535
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RankUpEquipmentCsReq : IMessage<RankUpEquipmentCsReq>, IMessage, IEquatable<RankUpEquipmentCsReq>, IDeepCloneable<RankUpEquipmentCsReq>, IBufferMessage
	{
		// Token: 0x17002CE2 RID: 11490
		// (get) Token: 0x06009EA6 RID: 40614 RVA: 0x001A84F1 File Offset: 0x001A66F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RankUpEquipmentCsReq> Parser
		{
			get
			{
				return RankUpEquipmentCsReq._parser;
			}
		}

		// Token: 0x17002CE3 RID: 11491
		// (get) Token: 0x06009EA7 RID: 40615 RVA: 0x001A84F8 File Offset: 0x001A66F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RankUpEquipmentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CE4 RID: 11492
		// (get) Token: 0x06009EA8 RID: 40616 RVA: 0x001A850A File Offset: 0x001A670A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RankUpEquipmentCsReq.Descriptor;
			}
		}

		// Token: 0x06009EA9 RID: 40617 RVA: 0x001A8511 File Offset: 0x001A6711
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentCsReq()
		{
		}

		// Token: 0x06009EAA RID: 40618 RVA: 0x001A851C File Offset: 0x001A671C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentCsReq(RankUpEquipmentCsReq other) : this()
		{
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.equipmentUniqueId_ = other.equipmentUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009EAB RID: 40619 RVA: 0x001A8568 File Offset: 0x001A6768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentCsReq Clone()
		{
			return new RankUpEquipmentCsReq(this);
		}

		// Token: 0x17002CE5 RID: 11493
		// (get) Token: 0x06009EAC RID: 40620 RVA: 0x001A8570 File Offset: 0x001A6770
		// (set) Token: 0x06009EAD RID: 40621 RVA: 0x001A8578 File Offset: 0x001A6778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x17002CE6 RID: 11494
		// (get) Token: 0x06009EAE RID: 40622 RVA: 0x001A8581 File Offset: 0x001A6781
		// (set) Token: 0x06009EAF RID: 40623 RVA: 0x001A8589 File Offset: 0x001A6789
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EquipmentUniqueId
		{
			get
			{
				return this.equipmentUniqueId_;
			}
			set
			{
				this.equipmentUniqueId_ = value;
			}
		}

		// Token: 0x06009EB0 RID: 40624 RVA: 0x001A8592 File Offset: 0x001A6792
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RankUpEquipmentCsReq);
		}

		// Token: 0x06009EB1 RID: 40625 RVA: 0x001A85A0 File Offset: 0x001A67A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RankUpEquipmentCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.CostData, other.CostData) && this.EquipmentUniqueId == other.EquipmentUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009EB2 RID: 40626 RVA: 0x001A85F0 File Offset: 0x001A67F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.EquipmentUniqueId != 0U)
			{
				num ^= this.EquipmentUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009EB3 RID: 40627 RVA: 0x001A8645 File Offset: 0x001A6845
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009EB4 RID: 40628 RVA: 0x001A864D File Offset: 0x001A684D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009EB5 RID: 40629 RVA: 0x001A8658 File Offset: 0x001A6858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.CostData);
			}
			if (this.EquipmentUniqueId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.EquipmentUniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009EB6 RID: 40630 RVA: 0x001A86B4 File Offset: 0x001A68B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.EquipmentUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EquipmentUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009EB7 RID: 40631 RVA: 0x001A870C File Offset: 0x001A690C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RankUpEquipmentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.EquipmentUniqueId != 0U)
			{
				this.EquipmentUniqueId = other.EquipmentUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009EB8 RID: 40632 RVA: 0x001A8774 File Offset: 0x001A6974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009EB9 RID: 40633 RVA: 0x001A8780 File Offset: 0x001A6980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EquipmentUniqueId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x04003D35 RID: 15669
		private static readonly MessageParser<RankUpEquipmentCsReq> _parser = new MessageParser<RankUpEquipmentCsReq>(() => new RankUpEquipmentCsReq());

		// Token: 0x04003D36 RID: 15670
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D37 RID: 15671
		public const int CostDataFieldNumber = 7;

		// Token: 0x04003D38 RID: 15672
		private ItemCostData costData_;

		// Token: 0x04003D39 RID: 15673
		public const int EquipmentUniqueIdFieldNumber = 8;

		// Token: 0x04003D3A RID: 15674
		private uint equipmentUniqueId_;
	}
}
